package com.dcy.daily.core.model;

import com.dcy.daily.common.aspect.snowFlake.AutoId;

import java.io.Serializable;

/**
 * @description account 
 * @date 2021-06-01 14:15
 *
 * -- dcy.account definition
 *
 * CREATE TABLE `account` (
 *   `id` int(12) NOT NULL AUTO_INCREMENT,
 *   `name` varchar(30) NOT NULL,
 *   PRIMARY KEY (`id`)
 * ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
 *
 *
 */
public class Account implements Serializable {
    /**
     * 表字段 : id
     */
    @AutoId
    private Integer id;

    /**
     * 表字段 : name
     */
    private String name;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }
}